<mat-drawer-container class="example-container" autosize >
  <mat-drawer #drawer class="example-sidenav" mode="side">
    <!--<mat-icon id="close" (click)="ontoggle(drawer)">close</mat-icon>-->
      <mat-toolbar color="primary">Menu</mat-toolbar>
        <mat-nav-list>
          <mat-list-item routerLink="/">
                <mat-icon>home</mat-icon> Home
          </mat-list-item>
          <mat-list-item routerLink="/patient/profile" routerLinkActive="active-list-item">
              <mat-icon>person</mat-icon> Profile
          </mat-list-item>
          <mat-list-item routerLink="/patient/mydoctorslist" routerLinkActive="active-list-item">
            <mat-icon>list</mat-icon> My Doctors
          </mat-list-item>
          <mat-list-item routerLink="/patient/alldoctors" routerLinkActive="active-list-item">
            <mat-icon>list</mat-icon> All Doctors
          </mat-list-item>
          <mat-list-item routerLink="/patient/medicalrecords" routerLinkActive="active-list-item">
              <mat-icon>note</mat-icon> Medical Records
          </mat-list-item>
          <mat-list-item routerLink="/patient/alltransactions" routerLinkActive="active-list-item">
            <mat-icon>payment</mat-icon> Transactions
          </mat-list-item>
        <!--<mat-list-item routerLink="/doctor/doctortransactions" routerLinkActive="active-list-item">
          <mat-icon>payment</mat-icon> Your Transactions
        </mat-list-item>
        <mat-list-item routerLink="/patient/notifications" routerLinkActive="active-list-item">
            <mat-icon>notifications</mat-icon> Notifications
        </mat-list-item>-->
        </mat-nav-list>
  </mat-drawer>
  <mat-toolbar style="position:fixed;z-index:2;" color="primary"><div class="example-sidenav-content">
    <button  type="button" id="menu" mat-icon-button (click)="ontoggle(drawer)"> <mat-icon>menu</mat-icon></button>
    </div> 
  <span>MediPac</span></mat-toolbar>
  <div style="padding-top:4em;padding-bottom:4em;">
    <router-outlet></router-outlet>
  </div>


</mat-drawer-container>
